import {request} from './requests'

export function userLogin(username, password) {
    return request({
        url: '/user/login',
        method: 'post',
        data: {
            username,
            password,
        }
    })
}
export function userRegister(username, password, email) {
    return request({
        url: '/user/register',
        method: 'post',
        data: {
            username,
            password,
            email
        }
    })
}

export function logout() {
    return request({
        url: '/user/logout',
        method: 'post'
    })
}
